package org.example.controller;

import org.example.mapper.ArticleMapper;
import org.example.model.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/article")
public class ArticleController {

    @Autowired
    private ArticleMapper articleMapper;

    @RequestMapping("/1")
    public Object test1(){
        List<Article> l = articleMapper.selectArticleAndUser();
        return l;
    }
}
